/*
 * @Author: HeAo
 * @Date: 2021-09-26 11:15:10
 * @LastEditTime: 2021-09-26 11:20:04
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day02\9-拓展运算符.js
 * 别乱动！
 */

// let obj1 = {
//   name: 'zhangsan',
//   age: 12
// }

// let obj2 = {
//   ...obj1,
//   name: 'lisi',
//   gender: 'male'
// }

// console.log(obj2);

let arr1 = ['tom', 'lerry', 'jecky']
let arr2 = [...arr1, 'zhangsan', 'lisi']
console.log(arr2);